package com.bjpowernode.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试 过滤器
 */
@Controller
@RequestMapping("/filter-test")
public class TestController {

    @RequestMapping("/cn")
    @ResponseBody
    public String hello1() {
        return  "你好，世界";
    }

    @RequestMapping("/en")
    @ResponseBody
    public String hello2() {
        return "hello, world";
    }

    @RequestMapping("/test/cn")
    @ResponseBody
    public String hello3() {
        return "你好, 世界";
    }
}
